﻿<%@ Page Title="" Language="C#" MasterPageFile="~/administration/Admin.master" AutoEventWireup="true"
    CodeFile="MergeReviews.aspx.cs" Inherits="administration_Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 100%">
        <div style="width: 40%; float: left">
            <span>CompanyID</span>
            <input id="textid" runat="server" type="text" class="text err" />
            <asp:Button ID="SFindID" Text="Find" Width="45px" Height="20px" ForeColor="White"
                BackColor="Black" runat="server" OnClick="SFindID_Click" />
            <%-- <asp:Button Text="Find" CssClass="button" runat="server" ID="fFindID" OnClick="fFindID_Click" />--%>
        </div>
        <br />
    </div>
    <asp:GridView ID="ReviewGridView" OnRowCommand="ReviewGridView_RowCommand" runat="server"
        Width="200px" Style="margin-left: 0" AutoGenerateColumns="False">
        <Columns>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:LinkButton Text="აღადგინე" runat="server" CommandName="RestoreCommand" CommandArgument='<%# Container.DataItemIndex %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ReviewID" HeaderText="ReviewID" ReadOnly="True" />
            <asp:BoundField DataField="Company.CompanyID" HeaderText="CompanyID" ReadOnly="True" />
            <asp:TemplateField HeaderText="რევიო">
                <ItemTemplate>
                    <asp:Label ID="Label1" Width="150px" Text='<%#(Eval("Review1")).ToString().Length > 50 ? (Eval("Review1")).ToString().Substring(0,50)+"..":(Eval("Review1")).ToString() %>'
                        runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="Company.Name" HeaderText="კომპანია" ReadOnly="True" />
            <asp:BoundField DataField="User.FirstName" HeaderText="მომხმარებელი" ReadOnly="True" />
            <%--<asp:BoundField DataField="Gallery.Name" HeaderText="სურათი" ReadOnly="True" />--%>
            <asp:BoundField DataField="CreateDate" HeaderText="შექ.თარღი" ReadOnly="True" />
        </Columns>
    </asp:GridView>
</asp:Content>
